<template>
  <div class="error">
    <div class="content">
      <h1>404</h1>
      <h3>页面不见了哦......</h3>
      <div class="btn">
        <el-button type="text" plain @click="Return()">返回首页</el-button>
        <el-button type="text" plain @click="ReturnGo()">返回上一页</el-button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "Error",
  methods: {
    Return() {
      this.$router.push("/home");
    },
    ReturnGo() {
      this.$router.go(-1);
    },
  },
};
</script>
<style scoped>
.error {
  background-image: url("../assets/login_bg.jpg");
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-color: #fff;
}
.content {
  text-align: center;
  line-height: 100px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
h1 {
  color: blue;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 120px;
}
h3 {
  font-size: 50px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.el-button {
  border: 1px solid blue;
  color: black;
  width: 40%;
}
</style>